home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 832 < prev    next >
Encoding:
Text File  |  1996-08-06  |  747 b   |  30 lines

  1. Path: news.csie.nctu.edu.tw!usenet
  2. From: u8113074@cc.nctu.edu.tw (Frederick Y.J. Wen)
  3. Newsgroups: comp.lang.c++
  4. Subject: >>>[Q] Static class <<<
  5. Date: Sun, 07 Jan 1996 18:36:25 GMT
  6. Organization: Dept. Comp. Sci. & Info. Eng., Chiao-Tung Univ., Taiwan
  7. Message-ID: <30f01106.5905772@news.csie.nctu.edu.tw>
  8. NNTP-Posting-Host: @a237191.nctu.edu.tw
  9. X-Newsreader: Forte Agent .99d/32.168
  10.  
  11.     I want to write a program to build a queue with bi-direction
  12. link. This is my program:
  13.  
  14. class queue    {
  15.     protected:
  16.         char *content;
  17.         class queue *p;
  18.         class queue *n;
  19.         static class queue BOTTOM;
  20.         static class queue TOP;
  21.  
  22.     public:
  23.         queue(char *);
  24.         ~queue();
  25. };
  26.     But I don't know how to initialize the BOTTOM and TOP.
  27. Anyone can tell me how to declare they?
  28.  
  29.     
  30.